package org.com.FeignClient;

import Entity.Postlike;
import org.com.FeignFallback.PostlikeFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(name = "Service-Postlike", fallback = PostlikeFeignFallback.class)
public interface PostlikeFeign {
    @PostMapping("/postlike/save")
    Boolean save(@RequestBody Postlike postlike);

    @PostMapping("/postlike/down")
    Boolean down(@RequestBody Postlike postlike);

    @PostMapping("/postlike/delete")
    String deletebyid(@RequestBody Postlike postlike);
}
